// JavaScript Document

function CheckEmp(src,fName,objName)
{ 
	if (src!="") {
		var qryString = "?src=" + src;
		qryString = qryString + "&fld=" + fName;
		
		window.open("ValEmpl.asp"+ qryString,"","width=300,height=120,Top=240,Left=240,toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,")
	} 
	else 
	{
		objName.value = "";
	}
}

function OpenEmpList(src, fCode, fName){
	var qryString = "?src=" + src;
	qryString = qryString + "&fCode=" + fCode;
	qryString = qryString + "&fName=" + fName;
	openpopup('EmpList.asp' + qryString);
}

function openpopup(Url){
winpops=window.open(Url,"","width=600,height=480,Top=25,Left=25,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,")
}
function openpopup2(Url){
winpops=window.open(Url,"","width=400,height=480,Top=25,Left=25,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,")
}
function openpopup3(Url){
winpops=window.open(Url,"","width=600,height=360,Top=100,Left=100,toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,")
}

function openpopup4(Url){
winpops=window.open(Url,"","width=800,height=480,Top=25,Left=25,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,")
}

function OpenContractList(){
	var qryString = "?fPonum=form1.reqPONum";
	qryString = qryString + "&fCurr=form1.reqCurrency";
	qryString = qryString + "&fCurr2=form1.CurSymbol2";
	qryString = qryString + "&fRemAmount=form1.RemainingAmount";
	qryString = qryString + "&fExRate=form1.exRate";
	qryString = qryString + "&fUserCoord=form1.reqUserCoord";
	qryString = qryString + "&fEndUser=form1.reqUserDept";
	qryString = qryString + "&VendorID=" + document.form1.reqVendorID.value;
	openpopup('POList.asp' + qryString);
}

function OpenAccountCodeList(src, fCode){
	var qryString = "?src=" + src;
	qryString = qryString + "&fld=" + fCode;
	openpopup4('PopUp/AccountCodeList.asp' + qryString);
}